import {contextBridge,ipcRenderer} from 'electron'
const noMoney = async ()=>{
    await ipcRenderer.invoke("noMoney")
}

const recNotVip = async ()=>{
    return await ipcRenderer.invoke('recNotVip')
}

const showOk = ()=>{
    ipcRenderer.invoke('showOk')
}

const showDetect =async ()=>{
    await ipcRenderer.invoke('showDetect')
}

const commit = async ()=>{
    await ipcRenderer.invoke('commit')
}

const scanDisk = ()=>{
    ipcRenderer.invoke('scanDisk')
}
const stopScan = ()=>{
    ipcRenderer.invoke('stopScan')
}

contextBridge.exposeInMainWorld("app",{
    noMoney,
    recNotVip,
    showOk,
    showDetect,
    commit,
    scanDisk,
    stopScan
})